#include <stdio.h>
#include <stdbool.h>
int main() {
	// 判断闰年
	int year;
	printf("输入年份：");
	scanf("%d",&year);
	bool rt = ((year%4==0)&&(year%100!=0))||(year%400==0);
	if(rt){
		printf("year=%d是闰年",year);
	}else{
		printf("year=%d不是闰年",year);
	}
	return 0;
}